﻿using System;
using System.Linq;
using System.Linq.Expressions;

namespace Wamm.AbstractDataAccess {
    public interface IRepository<T> {
        IQueryable<T> FindAll();
        IQueryable<T> FindWhere(Expression<Func<T, bool>> predicate);
        T FindById(int id);
        void Add(T entity);
        void Remove(T entity);
        void RemoveById(int id);
    }
}
